package com.sanyue.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author: Guan
 **/
@ServletComponentScan(basePackages = "com.sanyue.springboot")
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(Application.class, args);
        //停止容器，为了Listener的contextDestroyed
        // ioc.stop();
        System.out.println("ok");
    }
}
